package cn.spring.service;

import java.util.List;
import java.util.Map;

import cn.spring.bean.Commodity;
import cn.spring.bean.Type;

public interface CommodityService {
	public List<Commodity> getAll(int typeid);
	public List<Map<String, Object>> findAll(int empId);
	public List<Map<String, Object>> tong();
	public int insert(Commodity com);
	public int update(Commodity com);
	public Commodity findById(int id);
	public List<Type> getType();
	public int updateIsMai(Integer id);
	public List<Map<String, Object>> findAllByContent(String key);
	public List<Commodity> getAll1();
	public int updateStatsById(Boolean isMai,int id);
    
    public int updateIsMaiAll(Boolean isMai);
    
    public List<Map<String, Object>> tongShan();
}
